<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
   <head>
    	<title>学科管理系统</title>   
		<s:include value="../common/source.jsp"></s:include>	
  </head>
  <body>
  <!--多人邮件发送界面开始 -->
  <div class="body">
	<form  class="sui-form form-horizontal sui-validate" action="admin/SendMailsAction.action" method="post" > 
	  
	     <div class="zhengwen">
	     <div class="control-group">
	    <label class="control-label">收件人：</label>
	    <div class="controls">
		  <input type="text" id="ysvalue" name="toName" class="input-xxlarge" >
		</div>
	  </div>
	  
	   <div class="control-group">
	    <label class="control-label">主题：</label>
	    <div class="controls">
		  <input type="text" name="subject" class="input-xxlarge" data-rules="required">
		</div>
	  </div>
             
                 <div class="control-group">
	    <label class="control-label">正文：</label>
	    <div class="controls">
		  <textarea rows="20"  class="input-xxlarge" name="content" data-rules="required"></textarea> 
		</div>
	  </div>
	  <div class="control-group button1">
        <label class="control-label"></label>
        <div class="controls">
          <button type="submit" class="sui-btn btn-primary">发送</button>
          <button class="sui-btn " ><a href="#">返回</a></button>
        </div>
      </div>
      </div> 
      <div class="check">  
              <table>   
                <tr> <td> 
<div style="border:2px solid #ccc ;width:160px;">选择要发送的人员</div>  <div id="sp" style="width:160px;height:420px;overflow:auto;border: 2px ridge #FFFFFF;">  
<span style="white-space:pre"> </span>   <input type="checkbox" id="ysqu" value="01" onclick="ysqx();"><span>全选</span><br/> 
<s:iterator value="teachers">
<span style="white-space:pre"> </span>    <input type="checkbox" name="emailName"  id="lang" value="<s:property value="mail"/>"><span><s:property value="name"/></span><br/>  
</s:iterator> 
 
<span style="white-space:pre">  </span> </div>  
                        </td>  
                       </tr>
                        </tr></table>  
                     
        </form> 
        </div> 
  <body>  
</html>  
  
  
<script type="text/javascript">  

// 点击查询按钮  
function search(){  
  var value = "";  
  for (var i=0;i<lang.length;i++ ){  
     if(lang[i].checked){  
        value=value+lang[i].value + ",";  
     }  
  }  
}  
  
  
// 预算下拉复选框全选  
function ysqx(){  
   if (ysqu.checked) {  
      // 选中全选，让所有复选框选中  
      for (var i=0;i<lang.length;i++ ){  
         lang[i].checked = true;   
      }  
   } else {  
      // 取消全选  
      for (var i=0;i<lang.length;i++ ){  
         lang[i].checked = false;   
      }  
   }  
}  
</script> 
   </div>
    <!-- 多人邮件发送界面结束 --> 
  </body>
</html>
